
package dubbo.server4.impl.mybatis;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.context.annotation.Configuration;

@Configuration
@AutoConfigureAfter(MyBatisConfig.class)
@MapperScan(basePackages={"dubbo.server4.impl.dao"})
public class MyBatisMapperScannerConfig {
    //采用java注解配置@MapperScan 此配置无效 注释掉
	/*@Bean
	public MapperScannerConfigurer mapperScannerConfigurer() {
		MapperScannerConfigurer mapperScannerConfigurer = new MapperScannerConfigurer();
		mapperScannerConfigurer.setSqlSessionFactoryBeanName("sqlSessionFactory");
		mapperScannerConfigurer.setBasePackage("com.hdy.bms.*.mapper,com.hdy.bms.*.*.mapper");
		return mapperScannerConfigurer;
	}*/

}